﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="categoryEdit.aspx.cs" Inherits="PeisongWeb.admin.categoryEdit" %>


<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>

<%@ Register TagName="menu" Src="controls/menu.ascx" TagPrefix="uc2" %>
<%@ Register TagName="top" Src="controls/top.ascx" TagPrefix="uc1" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>商品类别编辑 - 想购网长期采购物流配送系统</title>
    <!--#include file="style.inc"-->
    
</head>
<body>
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
     <uc1:top ID="Top1" runat="server" />
      <uc2:menu ID="Menu1" runat="server" />
 <div id="admin_main" style="margin:10px 0 0 10px;">

    <ext:Panel 
            ID="panel_Title" 
            runat="server" 
            Title="商品类别编辑"
            BodyStyle="padding:5px 5px 0"
            Width="650"
            Frame="true"
            ButtonAlign="Center">
            <Body>
            
            <ext:Panel ID="Panel3" runat="server">
                    <Body>
                    
                        <ext:ColumnLayout ID="ColumnLayout1" runat="server">
                            <ext:LayoutColumn ColumnWidth=".5">
                                <ext:Panel ID="Panel4" runat="server" Border="false" Header="false" >
                                    <Body>
                                    <div  id="admin_edit_content">
                                    <ul>         
                                         <li>
                                        <label>
                                           名 称 *
                                            </label>
                                          
                                            <asp:TextBox runat="server" ID="txt_Name" Width="250"  ></asp:TextBox>
                                          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                          ErrorMessage="请输入名称" ControlToValidate="txt_Name" 
                                          Display="Dynamic"></asp:RequiredFieldValidator>
                                        </li>
                                        <li>
                                        <label>
                                            缩 写 *
                                            </label>
                                       
                                                <asp:TextBox runat="server" ID="txt_Ab" MaxLength="4" Width="50" ></asp:TextBox> 
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                          ErrorMessage="请输入缩写" ControlToValidate="txt_Ab" 
                                          Display="Dynamic"></asp:RequiredFieldValidator>                                          
                                        </li>
                                        <li>
                                        <label >
                                       父级类别
                                            </label>
                                            <asp:DropDownList ID="drp_ParentCategory" runat="server" 
                                            DataTextField="name" DataValueField="categoryID" 
                                            >
                                        </asp:DropDownList>
                                  
                                        </li>
                                        <li>
                                        <label >
                                             树级别 *
                                           </label>
                                                <asp:TextBox runat="server" ID="txt_Treelevel" ></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                          ErrorMessage="请输入树级别" ControlToValidate="txt_Treelevel" 
                                          Display="Dynamic"></asp:RequiredFieldValidator> 
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txt_Treelevel"
                                                Display="Dynamic" ErrorMessage="应为数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                                                
                                        </li>
                                        <li>
                                        <label >
                                            排序值 *
                                            </label>
                                                
                                            <asp:TextBox runat="server" ID="txt_Sort" ></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                          ErrorMessage="请输入排序值" ControlToValidate="txt_Sort" 
                                          Display="Dynamic"></asp:RequiredFieldValidator> 
                                          <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txt_Sort"
                                                Display="Dynamic" ErrorMessage="应为数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                                        </li>
                                        
                                      
                                        <li>
                                        <label>
                                             是否显示
                                           </label>
                                             <input runat="server" type="checkbox" id="chx_isShow" name="check1" /> 是                                    
                       
                                        </li>
                                        
                                       
                                        
                                         <li>
                                         <label >
                                           &nbsp;
                                            </label>
                                             <span style="<%=power>=2?"":"display:none" %>">
                                            <asp:Button runat="server" ID="btn_Save" Text="保 存" OnClick="btn_Save_Click" />
                                            </span>
                                            <input type="button" id="btn_Return" value="返 回" onclick="javascript:history.back();" /> 
                                        </li>
                                     </ul>   
                                           
                                        </div>           
                                                    
                                    </Body>
                                </ext:Panel>
                            </ext:LayoutColumn>
                        </ext:ColumnLayout>
                        
                    </Body>
                </ext:Panel>
                
            </Body>
          
        </ext:Panel>
    </div>
    </form>
</body>
</html>
